export default {
  name: 'simplePlugin',
  // eslint-disable-next-line no-unused-vars
  install(Vue, options = {}) {
    const files = require.context('@/components', true, /\.vue$/)
    files.keys().map(key => {
      const name = require('@/components' + key.replace('.', '')).default.name
      if (name) {
        Vue.component(name, () => import('@/components' + key.replace('.', '')))
      }
    })
  }
}
